//
//  CanImageView.m
//  LiangPinZS
//
//  Created by hwd on 17/2/22.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "CanImageView.h"

@implementation CanImageView
- (instancetype)initWithFrame:(CGRect)frame backGroundImageV:(NSString *)imageName
{
    if (self = [super initWithFrame:frame]) {
        self.frame = frame;
        self.userInteractionEnabled = YES;
        self.image = [UIImage imageNamed:imageName];
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(LabTap)];
        [self addGestureRecognizer:tap];

    }
    return self;
}
- (void)LabTap
{
    if (_block) {
        _block(self);
    }
}



@end
